{{useCss "/app-pages/css/admin/funs.scss"}}
<div class="funs">
	<div class="buttons">
		<button event-click="{{'$Event.admin.funs.refreshList'}}">刷新粉丝列表</button>
	</div>
	<table>
		<thead>
			<td colspan="3">粉丝列表</td>
		</thead>
		<tr>
			<td class="title">序号</td>
			<td class="title">OPEN_ID</td>
			<td class="title"></td>
		</tr>
		{{#each $Cache.admin.funs.list.data.openid}}
		<tr>
			<td>{{$Index}}</td>
			<td>{{$This.length?$This:openid}}</td>
			<td>
				{{#if $This.length}}
				<a class="method" event-click="{{'$Top.$Event.admin.funs.detail'}}">详情</a>
				{{#else}}
				<a class="method" event-click="{{'$Top.$Event.admin.funs.updateRemark'}}">更新备注</a>
				{{/if}}
			</td>
		</tr>
		{{#if !$This.length}}
		<tr class="info">
			<td>昵称：{{nickname}}</td>
			<td>位置：{{country}},{{province}},{{city}}</td>
			<td>性别：{{sex==1?'男':'女'}}</td>
		</tr>
		<tr class="info">
			<td>关注时间：{{#Time subscribe_time*1000,'YYYY-MM-DD'}}</td>
			<td>unionid：{{unionid}}</td>
			<td>备注：<input type="text" bind-input="{{'remark'}}" bind-value="{{remark}}" maxlength="10" placeholder="请填写粉丝备注" /></td>
		</tr>
		{{/if}}
		{{/each}}
	</table>
</div>
